package com.llynosy.interview.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CommUtils {

    public static Date getDate() throws  Exception{
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String time=sdf.format(new Date());
        return sdf.parse(time);
    }
}
